<include file='Admin/Tpl/Public/nav.html' />

<div class="page-content">
      <div class="container-fluid">
          <!-- Begin page heading -->
          <br/>
          <!-- End page heading -->
                
          <!-- Begin breadcrumb -->
          <ol class="breadcrumb default square rsaquo sm">
               <li><a href="index.html"><i class="fa fa-home"></i></a></li>
               <li><a href="#fakelink">Teamin</a></li>
               <li class="active">事务管理列表</li>
          </ol>
          <div class="the-box no-border event-log">                  
               <div class="btn-toolbar top-table div1" role="toolbar">
                    <div class="btn-group groups">
                                <span type="button" class="btn btn-success" ><a style="color:white;font-weight:bold" href="__APP__/HomePage/Event_excel">Excel文件导出</a></span>
                            </div>                            
<!--                              <div class="btn-group pull-right">
                              <input style="float:right;height:27px;line-height:14px;" type="submit" id="search_btn" class="btn btn-primary" value="搜索">                            
                              <input style="float:right;margin-left:5px;" id="search_time" type="text" placeholder="按开始时间查询..." name="project_startTime" value=""  onClick="WdatePicker()" />
                              <input style="float:right" id="search_name" type="text" placeholder="按项目/事务名称查询..." />
                               
                              </div>
-->                        </div><!-- /.btn-toolbar top-table -->
                        
                        <div class="table-responsive div1 div_search">
                            <table class="table table-th-block table-hover">                                
                                <thead>
                                    <tr>                                        
                                      <td class="text_content" style="width:50px;">编号</td>
                                      <td class="text_content">事务名称</td>
                                      <td class="text_content">发起人</td>
                                      <td class="text_content">开始时间</td>
                                      <td class="text_content">结束时间</td>
                                      <td class="text_content">项目名称</td><!--
                                      <td class="text_content">操作</td>-->
                                    </tr>                                                             
                                </thead>                                
                                <tbody>                                    
                                    <volist name="rs.data" id="val"> 
                                      <tr>                    
                                        <td class="text_content sub color_hover detail" style='text-align:center;vertical-align:middle; line-height:25px'>{$val.event_id}</td>
                                        <td  class="text_content" style='text-align:center;vertical-align:middle;width:180px'>{$val.event_name}</td>
                                        <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.event_launch_name}</td>
                                        <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.event_start_time|date="Y-m-d H:i",###}</td>
                                        <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.event_end_time|date="Y-m-d H:i",###}</td>
                                        <td  class="text_content" style='text-align:center;vertical-align:middle'>{$val.project_name}</td>
                                        <!--<td  class="text_content" style='text-align:center;vertical-align:middle'>
                                            <a href='javascript:void(0)' onclick="to_upt({$val.event_id})" title='Edit'>查看</a>&nbsp;|&nbsp;
                                            <a href='javascript:void(0)' onclick='del_project({$val.event_id})' title='Delete'>删除</a>
                                        </td>-->
                                      </tr>
                                    </volist>
                                </tbody>
                            </table>
                            <ul class="pagination success">{$rs.show}</ul>
                        </div>                      

                    </div><!-- /.the-box -->
                    <!-- End example member table -->           
                </div><!-- /.container-fluid -->                
                
                <!-- BEGIN FOOTER -->                             
            </div>
<script language="javascript" type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(".current").css({background:"#8CC152",color:"white"});
//搜索
$("#search_btn").click(function(){
    var search_time = $("#search_time").val();
    var search_name = $("#search_name").val();
    var page = 1;
    $.ajax({
      url:"__URL__/search",
      data:{"page":page,"event_startTime":search_time,"event_name":search_name,"project_name":search_name},
      type:"post",
      success:function(data){
            $(".div_search").html(data);
      }
    });
}); 
function del_project(a){
	if(confirm("确认删除?")){
		$.get('__URL__/delAct?event_id='+a,'',function(){window.location='__SELF__';},'json');	
	}
}
//查看
function to_upt(a){
    $.ajax({
      url:"__URL__/to_update",
      data:{'event_id':a},
      type:"post",
      success:function(data){
        $('.event-log').html(data);
      }
    })
}

</script>